#!/bin/env bash
echo 
echo "float : use bc and awk....."
echo 
echo "1.1+2.2=`echo "1.1+2.2" | bc`"
echo "1.1-2.2=`echo "1.1-2.2" | bc`"
echo "1.1*2.2=`echo "1.1*2.2" | bc`"
echo "1.1/2.2=`echo "scale=2;1.1/2.2" | bc`"
echo "`echo "obase=2;192"|bc`"
echo "`echo "obase=16;ibase=8;777"|bc`"
echo "square:"
echo "10^10=`echo "10^10"|bc`"
echo "square root:"
echo "sqrt(100)=`echo "sqrt(100)"|bc`"
echo "awk:"
echo $(awk 'BEGIN{print 0.5*7-8+2.7}')

